home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
shape.lha
/
shape
/
shape.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
1KB
|
48 lines
ifndef SHAPE_H
define SHAPE_H
include "screen.h"
include "gslist.h"
truct shape;
ypedef shape* sp;
eclare(gslist,sp);
ypedef gslist(sp) shape_lst;
ypedef gslist_iterator(sp) sl_iterator;
xtern shape_lst shape_list;
truct shape
shape() { shape_list.append(this); }
virtual point north() { return point(0,0); }
virtual point neast() { return point(0,0); }
virtual point east() { return point(0,0); }
virtual point seast() { return point(0,0); }
virtual point south() { return point(0,0); }
virtual point swest() { return point(0,0); }
virtual point west() { return point(0,0); }
virtual point nwest() { return point(0,0); }
virtual point middle(){ return point(0,0); }
virtual void draw() {};
virtual void move(int, int) {};
friend void shape_refresh();
friend void stack(shape*, shape*);
;
xtern void shape_refresh();
xtern void stack(shape*, shape*);
ifdef RECTFIRST
include <rectangle.h>
include <line.h>
else
include <line.h>
include <rectangle.h>
endif
endif